﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="StorageGoodsDetails.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.StorageManage.StorageGoodsDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        <!
        -- #height
        {
            height: 1000px;
        }
        #width
        {
            width: 1000px;
        }
        div
        {
            scrollbar-face-color: #C00;
            scrollbar-highlight-color: #F60;
            scrollbar-3dlight-color: #F00;
            scrollbar-darkshadow-color: #000;
            scrollbar-shadow-color: #000;
            scrollbar-arrow-color: #FFF;
            scrollbar-track-color: #D6A27E;
        }
        -- ></style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="javascript:void(0);">详细入库记录</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格型号：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                材质：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">
                                配送企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                配送时间：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtAddTimeFrom" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                    Width="62px"></asp:TextBox>-<asp:TextBox ID="txtAddTimeTo" runat="server" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                                        Width="62px"></asp:TextBox>
                            </td>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompanyName_SC" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        DataKeyNames="ProcureCatalogID,CompanyID_PS" EmptyDataText="该医疗机构暂无可采购的产品！" OnRowDataBound="gvwProduceCatalog_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1)%></ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="产品编号" Visible="false">
                <ItemTemplate>
                    <%#Eval("Goodsid") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="无" />
            <%--<asp:BoundField DataField="Factor" HeaderText="转换系数" />--%>
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别" />
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_PS" HeaderText="配送企业" />
            <asp:BoundField DataField="OrderName" HeaderText="采购单" />
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:N4}"
                Visible="false" />
            <asp:BoundField DataField="Price" HeaderText="采购价" DataFormatString="{0:N4}" />
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购量" />
            <asp:BoundField DataField="Dis_DistributeCount" HeaderText="批配送量" />
            <asp:BoundField DataField="Dis_WarehouseCount" HeaderText="批入库量" />
            <asp:BoundField DataField="BatchRecordID" HeaderText="批号" />
            <asp:BoundField DataField="DistributeTime" HeaderText="配送时间" DataFormatString="{0:d}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>提示:<span> 更换不同的查询条件可以查看不同状态下的产品。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <input type="button" value="返回" onclick="javascript:history.go(-1)" class="btn" />
    </div>
</asp:Content>
